<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">	
<link rel="shortcut icon" type="image/x-icon" href="{{URL::asset('handan/images/logo-icon.png')}}" />
<title></title>
<link rel="stylesheet" href="{{URL::asset('mobile/css/public.css') }}"/>
<link rel="stylesheet" href="{{URL::asset('mobile/css/hangqing.css') }}"/>
<script src="{{URL::asset('mobile/js/public.js') }}"></script>
<script src="{{URL::asset('public_js/jquery-3.2.1.min.js')}}"></script>
<script src="{{ URL::asset('public_js/src/echarts.js') }}"></script>
<script src="{{URL::asset('mobile/js/echarts.js') }}"></script>
</head>
<body>
	<!-- 时间 Time -->
	<div class="navTime">
		<a href="javascript:;" onclick="check_time(30,this,'30分')"><span class="font">30分</span></a>
		<a href="javascript:;" onclick="check_time(60,this,'1小时')" class="font">1小时</a>
		<a href="javascript:;" onclick="check_time(240,this,'4小时')" class="font">4小时</a>
		<a href="javascript:;" onclick="check_time(24,this,'日线')" class="font">日线</a>
	</div>
	<!-- 图表  -->
	<div class="echarts">
		<div id="echastsA" style="width:100%;height: 14rem"></div>
	</div>
</body>

<script type="text/javascript">
	var starttime = '{{$starttime}}',    //开始策略时间
		endtime   = '{{$endtime}}',      //结束时间
		nowtime   = Date.parse(new Date()); // 定时任务 
</script>
<script type="text/javascript">
        var width = document.documentElement.clientWidth;
         var height =  document.documentElement.clientHeight;
          $print =  $('#print');
         if( width > height ){

            $print.width(width);
            $print.height(height);
            $print.css('top',  0 );
            $print.css('left',  0 );
            $print.css('transform' , 'none');
            $print.css('transform-origin' , '50% 50%');
         }
         else{
            $print.width(height);
            $print.height(width);
            $print.css('top',  (height-width)/2 );
            $print.css('left',  0-(height-width)/2 );
            $print.css('transform' , 'rotate(90deg)');
            $print.css('transform-origin' , '50% 50%');
         }
   </script>
</html>
